package gui;

import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Shell;

/**
 * A collection of static GUI methods.
 * 
 * @author Lane Aasen 
 */
public class GUIAux {
	public static void centerWindow(Shell shell){
		Rectangle clientArea = shell.getMonitor().getClientArea();
		Rectangle shellArea = shell.getBounds();
		shell.setLocation((clientArea.width - shellArea.width) / 2, (clientArea.height - shellArea.height) / 2);
	}
}
